/**
 * @description 自动import导入所有 api 模块
 */

const files = (require as any).context('./modules', false, /\.ts$/)
const modules = {} as any
files.keys().forEach((key: string) => {
	modules[key.replace(/(\.\/|\.ts)/g, '')] = files(key).default
})

export default modules